<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            border-top: 3px solid tomato;
            border-bottom: 1px solid gray;
        }

        .box {

            color: gray;
        }

        .box a {
            display: inline-block;
            width: 80px;
            height: 40px;
            font-size: 12px;
            color: black;
            text-decoration: none;
            text-align: center;
            line-height: 40px;
        }

        .box a:hover {
            background-color: gray;
            color: chocolate
        }
    </style>
</head>

<body>
    <div class="box">
        <a href="#">新浪导航</a>
        <a href="#">新浪导航</a>
        <a href="#">新浪导航</a>
        <a href="#">新浪导航</a>
    </div>
</body>

</html>